//###############
// FILE : FileIterator.java
// WRITER : Lior Zimmerman liorz06 066462300
// WRITER : Ohad Dan ohad_dan 036767960
// EXERCISE : oop ex3 2008
// DESCRIPTION: An iterator for files collection.
//###############
package oop.ex3.fileSearchModel.util;
import oop.ex3.fileSearchModel.util.exceptions.*;
/**
 * An iterator for files collection.
 */
public interface FileIterator {
    /**
     * Checks if a next element exists.
     * @return True if there is next element, false otherwise.
     */
	public boolean hasNext();
	/**
	 * Returns next element.
	 * @return Next file.
	 * @throws ReaderIOException In case of I/O failure.
	 */
    public String next() throws ReaderIOException;
}
